package lion.dev.encrypt.cert;

import java.util.Date;

/**
 * @author lion
 * @email hl_0074@sina.com
 * @date 2016年3月4日
 */
public class CertInfo {

	private DName subjectDN;
	private DName issuerDN;
	private int serialNumber;
	private Date notBefore = new Date();
	// one year
	private Date notAfter = new Date(notBefore.getTime() + 31536000000L);
	private String signAlgName;
	private int keyUsage;

	public DName getSubjectDN() {

		return subjectDN;
	}

	public void setSubjectDN(DName subjectDN) {

		this.subjectDN = subjectDN;
	}

	public DName getIssuerDN() {

		return issuerDN;
	}

	public void setIssuerDN(DName issuerDN) {

		this.issuerDN = issuerDN;
	}

	public int getSerialNumber() {

		return serialNumber;
	}

	public void setSerialNumber(int serialNumber) {

		this.serialNumber = serialNumber;
	}

	public Date getNotBefore() {

		return notBefore;
	}

	public void setNotBefore(Date notBefore) {

		this.notBefore = notBefore;
	}

	public Date getNotAfter() {

		return notAfter;
	}

	public void setNotAfter(Date notAfter) {

		this.notAfter = notAfter;
	}

	public String getSignAlgName() {

		return signAlgName;
	}

	public void setSignAlgName(String sigAlgName) {

		this.signAlgName = sigAlgName;
	}

	public int getKeyUsage() {

		return keyUsage;
	}

	public void setKeyUsage(int keyUsage) {

		this.keyUsage = keyUsage;
	}

}
